#include <iostream>
#include <string>
using namespace std;
int main()
{
 time_t nowtime;
	time(&nowtime); //获取1970年1月1日0点0分0秒到现在经过的秒数
	tm* p = localtime(&nowtime); //将秒数转换为本地时间,年从1900算起,需要+1900,月为0-11,所以要+1
    string result;
    result+=p->tm_year+1900;
    result+="/";
    result+=p->tm_mon+1;
    result+="/";
    result+=p->tm_mday;
    result+=" ";
    result+=p->tm_hour;
    result+=":";
    result+=p->tm_min;
    result+=":";
    result+=p->tm_sec;
  cout<<result<<endl;

  return 0;
}
